package com.ueip.backend.controller;

import com.ueip.backend.service.PositionService;
import com.ueip.backend.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/position")
public class PositionController {
    @Autowired
    private PositionService positionService;

    // 获取所有职位信息
    @PostMapping("/get/all")
    Result getAll() {
        return positionService.getAll();
    }
}
